package com.songyang.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songyang.blog.common.lang.Result;
import com.songyang.blog.entity.Post;
import com.songyang.blog.entity.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 宋阳
 * @since 2021-05-07
 */
public interface UserService extends IService<User> {

    Result register(User user);

    User login(String username, String password);

    List<Post> getPosts(Long profileId);
}
